import asyncio
import aiofiles

txt_path = '../test.txt'


async def read_demo():
    print('read start')
    async with aiofiles.open(txt_path) as f:
        await f.read()
    print('read finish')


async def demo():
    print("start")
    print("finish")


async def main():
    tasks = [
        asyncio.create_task(read_demo()),
        asyncio.create_task(demo()),
    ]
    await asyncio.wait(tasks)


if __name__ == "__main__":
    asyncio.run(main())
